get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" DIRECTORY)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" DIRECTORY)

add_library(GL::freeglut SHARED IMPORTED)
set_target_properties(GL::freeglut PROPERTIES
	INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/prebuilts/include"
	IMPORTED_LOCATION "${_IMPORT_PREFIX}/prebuilts/dll/freeglutd.dll"
	IMPORTED_IMPLIB "${_IMPORT_PREFIX}/prebuilts/lib/freeglutd.lib"
)

add_library(GL::glew SHARED IMPORTED)
set_target_properties(GL::glew PROPERTIES
	INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/prebuilts/include"
	IMPORTED_LOCATION "${_IMPORT_PREFIX}/prebuilts/dll/glew32.dll"
	IMPORTED_IMPLIB "${_IMPORT_PREFIX}/prebuilts/lib/glew32.lib"
)

add_library(GL::SOIL STATIC IMPORTED)
set_target_properties(GL::SOIL PROPERTIES
	INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/prebuilts/include"
	IMPORTED_LOCATION "${_IMPORT_PREFIX}/prebuilts/lib/soil.lib"
)

add_library(GL::FREETYPE STATIC IMPORTED)
set_target_properties(GL::FREETYPE PROPERTIES
	INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/prebuilts/include"
	IMPORTED_LOCATION "${_IMPORT_PREFIX}/prebuilts/lib/freetyped.lib"
)

add_library(GL::GLLIBS INTERFACE IMPORTED)
set_target_properties(GL::GLLIBS PROPERTIES
	INTERFACE_LINK_LIBRARIES "GL::glew;GL::freeglut;GL::SOIL;GL::FREETYPE"
)
